import { genMessages } from '../helper';
import antdLocale from 'ant-design-vue/es/locale/zh_CN';
import momentLocale from 'moment/dist/locale/zh-cn';

const ctx = require.context('./data', true, /\.ts$/);
const requireAll = {}
for (const key of ctx.keys()) {
  requireAll[key] = ctx(key)
}
export default {
  message: {
    ...genMessages(requireAll, 'zh_CN'),
    antdLocale,
  },
  momentLocale,
  momentLocaleName: 'zh-cn',
};
